package com.xuanxu.blogs.module.user.client.admin;

import com.xuanxu.blogs.module.user.entity.dto.admin.AdminUserDto;
import com.xuanxu.blogs.module.user.enums.UserApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author XuanXu
 * @version 1.0
 * @date 2024-08-24 18:02
 */
@FeignClient(UserApiConstants.SERVER_NAME)
public interface AdminUserClient {

    /**
     * 根据用户ID查询用户
     * @param userId 用户ID
     * @return ResponseEntity<UserDto>
     */
    @GetMapping("/admin-api/user/user/{userId}")
    ResponseEntity<AdminUserDto> selectUserByUserId(@PathVariable("userId") Long userId);
}
